#include "Scene.h"

namespace PeanutQuest {

	Scene::Scene() : cg::Entity("Lighting") {
	}
	Scene::~Scene() {
	}
	void Scene::init() {
		
		//glCullFace(GL_BACK);
		//glEnable(GL_CULL_FACE);

		//GLfloat lmodel_ambient[] = {0.1f,0.1f,0.1f,1.0f};
		//glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient);
		glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, GL_TRUE);
		//glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, GL_FALSE);
		/*
		float fog_color[] = {0.1f,0.1f,0.1f,1.0f};
		glFogi(GL_FOG_MODE,GL_LINEAR);
		glFogfv(GL_FOG_COLOR, fog_color);
		glFogf(GL_FOG_START,15.0f);
		glFogf(GL_FOG_END,25.0f);
		*/
	}
	void Scene::draw() {
		
		glEnable(GL_LIGHTING);
		//glEnable(GL_FOG);
		
	}
	void Scene::drawOverlay() {
		//glDisable(GL_LIGHTING);
		//glDisable(GL_FOG);
	}
}